package com.runjian.rundo.iot.agent.iec104.parser.frame;

import com.runjian.rundo.iot.agent.iec104.consts.FrameType;

import cn.hutool.core.util.StrUtil;
import lombok.Getter;
import lombok.Setter;

/**
 * S格式 帧
 *
 * @author CaoQingHua
 */
@Getter
@Setter
public class SIec104Frame extends AIec104Frame {

    /**
     * 接收序列号
     */
    private short receiveNo;

    public SIec104Frame() {
        this.setFrameType(FrameType.S);
    }

    @Override
    public String console() {
        return StrUtil.format("S帧 接收序列号:{}", receiveNo);
    }

}
